﻿@{
    ViewBag.Title = "Index";
}
<script type="text/javascript">
    $(document).ready(function () {
        $("#createButton").button();
    });
</script>
<a id="createButton" href="/Collection/Create">@ESN.Languages.LangString.Load("creat", "Collection")</a>
@if (ViewBag.YourCollections != null)
{
    <h2>@ESN.Languages.LangString.Load("your_collection", "Collection")</h2>
    <hr />
    <div class="ui-corner-all ui-widget-content" style="min-height:200px">
    @foreach (var c in ViewBag.YourCollections)
    {
        <span class="avt-wrapper"><a href="/Collection/View/@c.FId"><img height="80" width="70" src="@c.FThumb" alt="avatar" title="@c.FName" /></a></span>   
    }
    </div>
}
<h2>@ESN.Languages.LangString.Load("public_collection", "Collection")</h2>
<hr />
<div class="ui-corner-all ui-widget-content" style="min-height:200px">
@foreach (var c in ViewBag.PublicCollections)
{
    <span class="avt-wrapper"><a href="/Collection/View/@c.FId"><img height="80" width="70" src="@c.FThumb" alt="avatar" title="@c.FName" /></a></span>   
}
</div>
